#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# Edit By WangWenHao, CMIOT, China Mobile

import time
import pandas as pd
import numpy as np

def time2min(time_str):
    h,m = time_str.strip().split(":")
    return int(h) * 60 + int(m)

def min2time(min_cnt):
	h, m = divmod(min_cnt, 60)
	str = "%d:%d" % (h,m)
	return str

df = pd.read_csv('../sleepdata.csv', sep = ";")
print(df.head())